// API响应基础类型
export interface APIResponse<T = any> {
  code: number
  message: string
  data: T
}

// 分页响应类型
export interface APIPaging<T = any> {
  totalCount: number
  totalPages: number
  data: T
}

// 院区相关类型
export interface HospitalBranch {
  id: number
  name: string
  address?: string
  description?: string
  isEnabled: boolean
  sortOrder: number
}

// 检查项目类型
export interface CheckItem {
  id: number
  name: string
  price: number
  typeId: number
  type?: CheckItemType
  isEnabled: boolean
  sortOrder: number
}

// 检查项目类型
export interface CheckItemType {
  id: number
  name: string
  parentId?: number
  level: number
  code?: string
  description?: string
  icon?: string
  isEnabled: boolean
  sortOrder: number
}

// 开单记录类型
export interface OrderRecord {
  id: number
  hospitalBranchId: number
  hospitalBranch?: HospitalBranch
  checkItemId: number
  checkItem?: CheckItem
  itemCount: number
  totalAmount: number
  paymentStatus: string
  orderTime: string
  paymentTime?: string
  completedTime?: string
  patientName: string
  patientIdCard: string
  applicationReason: string
  remarks?: string
} 